package com.foreverwin.mes.production.service;

import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.production.dto.ReleaseAndStartSfcDto;
import com.foreverwin.mes.production.dto.ReleaseAndStartSfcResponse;
import com.foreverwin.mes.production.dto.SfcInWorkDto;
import com.foreverwin.mes.production.dto.SfcQueuedDto;
import com.foreverwin.mes.production.model.SfcExtend;

import java.math.BigDecimal;
import java.util.List;

/**
 * @program: mesext
 * @description: 生产过站
 * @author: syngna
 * @create: 2020-02-17 11:16
 */
public interface SfcExService extends IService<SfcExtend> {

    ReleaseAndStartSfcResponse releaseAndStartSfc(ReleaseAndStartSfcDto releaseAndStartSfcDto);

    void sfcStart(String site, String resourceBo, String operationBo, String sfcBo);

    void sfcComplete(String site, String user, String resourceBo, String operationBo, String sfcBo, BigDecimal qty, Boolean close);

    List<SfcQueuedDto> listReleasableSfc(String site, String resrce);

    List<SfcQueuedDto> listQueuedOrReleasableSfc(String site, String resrce, String operation);

    List<SfcInWorkDto> listSfcInWork(String site, String resrce, String operation, String sfc);
}